<template>
	<div>
		<Header/>
		<!-- 导航区域 -->
		<div class="col-xs-2 col-xs-offset-2">
			<!-- 在Vue中，我们靠router-link标签实现：点击导航修改路径 -->
			<router-link class="list-group-item" active-class="atguigu" :to="{path:'/about'}">
				About
			</router-link>

			<router-link class="list-group-item" active-class="atguigu" :to="{path:'/home'}">
				Home
			</router-link>

		</div>
		<!-- 展示区 -->
		<div class="col-xs-6 panel-body">
			<!-- 指定展示的位置 -->
			<router-view/>
		</div>
	</div>
</template>

<script>
	import Header from './components/Header'
	export default {
		name: 'App',
		components:{Header},
	}
</script>

<style>
	.atguigu{
		background-color: orange !important;
		color: white !important;
	}
</style>